package org.infosys.user.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.infosys.basic.vo.LoginVo;
import org.infosys.user.domain.Logininfo;
import org.infosys.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hank
 * @since 2022-07-06
 */
@Mapper
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /** 登录时根据用户名和type查询 */
    Logininfo loadByUsernameAndType(LoginVo loginVo);

    /** 微信登录时查询 */
    Logininfo loadByUserId(Long userId);
}
